<%-- 
    Document   : admin
    Created on : Apr 5, 2011, 11:25:52 AM
    Author     : user
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%
String baseURL = getServletContext().getContextPath();
%>
<%@ include file="database.jsp" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>On Air -- Admin</title>
        <link rel="stylesheet" href="public/css/admin.css" type="text/css" media=screen />
        <script src="public/js/common.js" type="text/javascript"></script>
        <script src="public/js/ajax.js" type="text/javascript"></script>
        <script src="public/js/admin.js" type="text/javascript"></script>
        <script src="public/js/admin_user.js" type="text/javascript"></script>
        <script type="text/javascript">
            baseURL = "<%=baseURL%>";
        </script>
    </head>
    <body>
        <%
            PreparedStatement psInsertRecord = null;
            try{
                String sqlInsertRecord = "insert into user (username, password, email, role, number_room, ban) values ('adhi_11','susliawan', 'adhi_informatics@yahoo.com', 'admin', '10',1 )";
                psInsertRecord = conn.prepareStatement(sqlInsertRecord);
                psInsertRecord.executeUpdate();
            }
            catch(Exception e){
                System.out.println("insert data error");
            }
        %>

        <div id="wrap">
            <div id="header" class="border">
                header
            </div>
            <div id="content" class="border">
                <div id="menu-container">
                    <div class="menu" onClick="CategoryPanel.showPanel();">Category</div>
                    <div class="menu" onClick="init();">User</div>
                </div>
                <div id="user-column">
                    
                </div>
                <div id="left-column">
                    <input type="button" value="Add Category" onclick="show_category_prompt();"/>
                    <div id="category-container">
                        <div class="category">
                            <div class="category-name">Sport</div>
                            <img src="delete" alt="delete" />
                        </div>
                        <div class="category">
                            <div class="category-name">Entertaiment</div>
                            <img src="delete" alt="delete" />
                        </div>
                        <div class="category">
                            <div class="category-name">Men</div>
                            <img src="delete" alt="delete" />
                        </div>
                        <div class="category">
                            <div class="category-name">Women</div>
                            <img src="delete" alt="delete" />
                        </div>
                    </div>
                </div>
                <div id="desc-user-column">
                    
                </div>
                <div id="right-column">
                    <div id="category-title">
                        title
                        <img src="delete" alt="delete" />
                    </div>
                    <div id="details">
                        <table>
                            <tr>
                                <td>Football</td>
                                <td>
                                    <img src="delete" alt="delete" />
                                    <img src="edit" alt="edit" />
                                </td>
                            </tr>
                            <tr>
                                <td>Basket</td>
                                <td>
                                    <img src="delete" alt="delete" />
                                    <img src="edit" alt="edit" />
                                </td>
                            </tr>
                            <tr>
                                <td>Badminton</td>
                                <td>
                                    <img src="delete" alt="delete" />
                                    <img src="edit" alt="edit" />
                                </td>
                            </tr>
                            <tr>
                                <td>Swimming</td>
                                <td>
                                    <img src="delete" alt="delete" />
                                    <img src="edit" alt="edit" />
                                </td>
                            </tr>
                            <tr>
                                <td></td>
                                <td>
                                    <input type="button" value="Add" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="clear"></div>
            </div>
            <div id="footer" class="border">
                footer
            </div>
            <div class="clear"></div>
        </div>
    </body>
</html>